<?php

namespace app\index\model;

use think\Model;
use think\Db;

class Vercode extends Model
{
    public function getRandOne()
    {

        $data = Db::query('select * from fly_vercode order by rand() limit 1');


        session('answer',$data[0]['answer']);

        return $data[0]['question'];

    }
}